﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 类_访问修饰符private和public
{
    class Program
    {
        static void Main1(string[] args)
        {
            MyClass myClass = new MyClass();
            myClass.b = 2;
        }

        static void Main(string[] args)
        {
            int[] vs = { 1, 3, 4, 5 };
            Array.Clear(vs, 0, vs.Length);
            foreach (var item in vs)
            {
                Console.WriteLine(item);
            }
        }
    }

    class MyClass
    {
        private int a;
        public int b;
            
    }
}
